home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Telnet
/
NCSA
/
tn3270 2.3d26 source
/
tn3270
/
makefile
< prev
next >
Wrap
Makefile
|
1991-06-18
|
10KB
|
292 lines
#
# tn3270 for the Macintosh Source Code
# Brown University Computing and Information Services
# Version 2.3d21, January 17, 1991
# Copyright (c) 1988, 1989, 1990, 1991 by Brown University and by
# Peter John DiCamillo.
#
# Permission is granted to any individual or institution to use, copy,
# or redistribute the binary version of this software and its
# documentation provided this notice and the copyright notices are
# retained. Permission is granted to any individual or non-profit
# institution to use, copy, modify, or redistribute the source files
# of this software provided this notice and the copyright notices are
# retained. This software may not be distributed for profit, either
# in original form or in derivative works, nor can the source be
# distributed to other than an individual or a non-profit institution.
# Any individual or group interested in seeing and/or using these
# source files but who are prevented from doing so by the above
# constraints should contact Don Wolfe, Assistant Vice-President for
# Computer Systems at Brown University, (401) 863-7250, for possible
# software licensing of the source developed at Brown.
#
# Brown University and Peter John DiCamillo make no representations
# about the suitability of this software for any purpose.
#
# BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
# EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
# INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
# WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
#
# control variables
ObjDir = ":obj:"
HdrDir = "{MPW}CIncludes:"
TCPHdrDir = "{MPW}Mac Telnet:tcpip:"
TCPLibDir = "{MPW}Mac Telnet:tcpip:"
COpts = -g
AsmOpts =
AllDepend =
# AllDepend = makefile
GlobalDepend = termdef.h globals.h
# file list variables
CommonObj = {ObjDir}grafterm.c.o ∂
{ObjDir}api.c.o ∂
{ObjDir}apistg.c.o ∂
{ObjDir}attnmenu.c.o ∂
{ObjDir}bgproc.a.o ∂
{ObjDir}cdialog.c.o ∂
{ObjDir}crcf.c.o ∂
{ObjDir}dialogs.c.o ∂
{ObjDir}hndkbd.c.o ∂
{ObjDir}kbtab.c.o ∂
{ObjDir}menu.c.o ∂
{ObjDir}prt.c.o ∂
{ObjDir}scrap.c.o ∂
{ObjDir}settings.c.o ∂
{ObjDir}sppc.c.o ∂
{ObjDir}switcher.c.o ∂
{ObjDir}util.c.o ∂
{ObjDir}vmxfer.c.o ∂
{ObjDir}writescr.c.o ∂
{ObjDir}writesf.c.o ∂
{ObjDir}writetm.c.o
# rules for creating object code files
{ObjDir}addshr.c.o ƒ {AllDepend} maclib.h addshr.c
C {COpts} addshr.c -o {ObjDir}addshr.c.o
{ObjDir}addswt.c.o ƒ {AllDepend} maclib.h addswt.c
C {COpts} addswt.c -o {ObjDir}addswt.c.o
{ObjDir}api.c.o ƒ {AllDepend} {GlobalDepend} maclib.h sppc.h api.c
C {COpts} api.c -o {ObjDir}api.c.o
{ObjDir}apistg.c.o ƒ {AllDepend} {GlobalDepend} maclib.h apistg.c
C {COpts} apistg.c -o {ObjDir}apistg.c.o
{ObjDir}attnmenu.c.o ƒ {AllDepend} {GlobalDepend} maclib.h attnmenu.c
C {COpts} attnmenu.c -o {ObjDir}attnmenu.c.o
{ObjDir}bgproc.a.o ƒ {AllDepend} bgproc.a
Asm {AsmOpts} bgproc.a -o {ObjDir}bgproc.a.o
{ObjDir}cdialog.c.o ƒ {AllDepend} {GlobalDepend} maclib.h cdialog.c
C {COpts} cdialog.c -o {ObjDir}cdialog.c.o
{ObjDir}crcf.c.o ƒ {AllDepend} crcf.c
C {COpts} crcf.c -o {ObjDir}crcf.c.o
{ObjDir}dialogs.c.o ƒ {AllDepend} {GlobalDepend} maclib.h dialogs.c
C {COpts} dialogs.c -o {ObjDir}dialogs.c.o
{ObjDir}glbtcp.c.o ƒ {AllDepend} {GlobalDepend} maclib.h globals.c
C {COpts} -d TCP globals.c -o {ObjDir}glbtcp.c.o
{ObjDir}grafterm.c.o ƒ {AllDepend} {GlobalDepend} maclib.h telnet.h grafterm.c
C {COpts} grafterm.c -o {ObjDir}grafterm.c.o
{ObjDir}hndkbd.c.o ƒ {AllDepend} {GlobalDepend} maclib.h hndkbd.c
C {COpts} hndkbd.c -o {ObjDir}hndkbd.c.o
{ObjDir}kbtab.c.o ƒ {AllDepend} kbtab.c
C {COpts} kbtab.c -o {ObjDir}kbtab.c.o
{ObjDir}menu.c.o ƒ {AllDepend} {GlobalDepend} maclib.h menu.c
C {COpts} menu.c -o {ObjDir}menu.c.o
{ObjDir}netstub.c.o ƒ {AllDepend} {GlobalDepend} maclib.h netstub.c
C {COpts} netstub.c -o {ObjDir}netstub.c.o
{ObjDir}prt.c.o ƒ {AllDepend} {GlobalDepend} maclib.h prt.c
C {COpts} prt.c -o {ObjDir}prt.c.o
{ObjDir}scrap.c.o ƒ {AllDepend} {GlobalDepend} maclib.h scrap.c
C {COpts} scrap.c -o {ObjDir}scrap.c.o
{ObjDir}serscrn.c.o ƒ {AllDepend} {GlobalDepend} maclib.h serscrn.c
C {COpts} serscrn.c -o {ObjDir}serscrn.c.o
{ObjDir}sertstub.c.o ƒ {AllDepend} {GlobalDepend} maclib.h sertstub.c
C {COpts} sertstub.c -o {ObjDir}sertstub.c.o
{ObjDir}settings.c.o ƒ {AllDepend} {GlobalDepend} maclib.h settings.c
C {COpts} settings.c -o {ObjDir}settings.c.o
{ObjDir}sppc.c.o ƒ {AllDepend} sppcinterface.h sppc.c
C {COpts} sppc.c -o {ObjDir}sppc.c.o
{ObjDir}switcher.c.o ƒ {AllDepend} {GlobalDepend} maclib.h switcher.c
C {COpts} switcher.c -o {ObjDir}switcher.c.o
{ObjDir}tcpevent.c.o ƒ {AllDepend} {GlobalDepend} maclib.h tcpevent.c ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}hostform.h
C {COpts} -i {TCPHdrDir} tcpevent.c -o {ObjDir}tcpevent.c.o
{ObjDir}tcpio.c.o ƒ {AllDepend} {GlobalDepend} maclib.h tcpio.c ∂
{HdrDir}AppleTalk.h ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}kip.h ∂
{TCPHdrDir}hostform.h
C {COpts} -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpio.c.o
{ObjDir}tcpiodrv.c.o ƒ {AllDepend} {GlobalDepend} maclib.h tcpio.c ∂
{HdrDir}AppleTalk.h ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}kip.h ∂
{TCPHdrDir}hostform.h
C {COpts} -d TCPDRV -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpiodrv.c.o
{ObjDir}telnet.c.o ƒ {AllDepend} {GlobalDepend} maclib.h telnet.h telnet.c
C {COpts} telnet.c -o {ObjDir}telnet.c.o
{ObjDir}util.c.o ƒ {AllDepend} maclib.h util.c
C {COpts} util.c -o {ObjDir}util.c.o
{ObjDir}vmxfer.c.o ƒ {AllDepend} {GlobalDepend} maclib.h vmxfer.c
C {COpts} vmxfer.c -o {ObjDir}vmxfer.c.o
{ObjDir}writescr.c.o ƒ {AllDepend} {GlobalDepend} maclib.h writescr.c
C {COpts} writescr.c -o {ObjDir}writescr.c.o
{ObjDir}writesf.c.o ƒ {AllDepend} {GlobalDepend} maclib.h writesf.c
C {COpts} writesf.c -o {ObjDir}writesf.c.o
{ObjDir}writetm.c.o ƒ {AllDepend} {GlobalDepend} maclib.h writetm.c
C {COpts} writetm.c -o {ObjDir}writetm.c.o
# resource files common to all versions:
CommonRsc = general attnmap fonts icons version.r
# rules for creating resource files
general ƒ {AllDepend} general.r
Rez general.r -o general
attnmap ƒ {AllDepend} attnmap.r
Rez attnmap.r -o attnmap
fonts ƒ {AllDepend} fonts.r
Rez fonts.r -o fonts
icons ƒ {AllDepend} icons.r
Rez icons.r -o icons
# rules for creating tool program
addshr ƒƒ {AllDepend} {ObjDir}addshr.c.o
Delete -i addshr
Link -w -t MPST -c 'MPS ' ∂
{ObjDir}addshr.c.o ∂
"{Libraries}"Interface.o ∂
"{CLibraries}"CRuntime.o ∂
"{CLibraries}"StdCLib.o ∂
"{CLibraries}"CSANELib.o ∂
"{CLibraries}"Math.o ∂
"{CLibraries}"CInterface.o ∂
"{Libraries}"ToolLibs.o ∂
-o addshr
addswt ƒƒ {AllDepend} {ObjDir}addswt.c.o
Delete -i addswt
Link -w -t MPST -c 'MPS ' ∂
{ObjDir}addswt.c.o ∂
"{Libraries}"Interface.o ∂
"{CLibraries}"CRuntime.o ∂
"{CLibraries}"StdCLib.o ∂
"{CLibraries}"CSANELib.o ∂
"{CLibraries}"Math.o ∂
"{CLibraries}"CInterface.o ∂
"{Libraries}"ToolLibs.o ∂
-o addswt
# rules for creating tn3270 versions
# standard tn3270 (TCP/IP only)
tn3270 ƒƒ {AllDepend} {CommonObj} {ObjDir}glbtcp.c.o ∂
{ObjDir}netstub.c.o ∂
{ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
{CommonRsc} tcpversion.r addshr addswt
Delete -i tn3270
Link -b -w -t APPL -c 'GFTM' {CommonObj} {ObjDir}glbtcp.c.o ∂
{ObjDir}netstub.c.o ∂
{ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
"{Libraries}"Interface.o ∂
"{CLibraries}"CRuntime.o ∂
"{CLibraries}"StdCLib.o ∂
"{CLibraries}"CSANELib.o ∂
"{CLibraries}"Math.o ∂
"{CLibraries}"CInterface.o ∂
{TCPLibDir}tcplib.ncsa.o ∂
-o tn3270
Rez tcpversion.r -a -o tn3270
addswt tn3270
Setfile -a B tn3270
addshr tn3270
# tn3270 with Apple drivers
tn3270drv ƒƒ {AllDepend} {CommonObj} {ObjDir}glbtcp.c.o ∂
{ObjDir}netstub.c.o ∂
{ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
{CommonRsc} tcpdversion.r addshr addswt
Delete -i tn3270drv
Link -b -w -t APPL -c 'GFTM' {CommonObj} {ObjDir}glbtcp.c.o ∂
{ObjDir}netstub.c.o ∂
{ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
"{Libraries}"Interface.o ∂
"{CLibraries}"CRuntime.o ∂
"{CLibraries}"StdCLib.o ∂
"{CLibraries}"CSANELib.o ∂
"{CLibraries}"Math.o ∂
"{CLibraries}"CInterface.o ∂
{TCPLibDir}tcplibd.o ∂
-o tn3270drv
Rez tcpdversion.r -a -o tn3270drv
addswt tn3270drv
Setfile -a B tn3270drv
addshr tn3270drv
# tn3270 with Apple drivers; test version with large MF memory
tn3270test ƒƒ {AllDepend} {CommonObj} {ObjDir}glbtcp.c.o ∂
{ObjDir}netstub.c.o ∂
{ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
{CommonRsc} tcpdversion.r addshr addswt
Delete -i tn3270test
Link -b -w -t APPL -c 'GFTM' {CommonObj} {ObjDir}glbtcp.c.o ∂
{ObjDir}netstub.c.o ∂
{ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
"{Libraries}"Interface.o ∂
"{CLibraries}"CRuntime.o ∂
"{CLibraries}"StdCLib.o ∂
"{CLibraries}"CSANELib.o ∂
"{CLibraries}"Math.o ∂
"{CLibraries}"CInterface.o ∂
{TCPLibDir}tcplibd.o ∂
-o tn3270test
Rez tcpdversion.r -a -o tn3270test
addswt tn3270test test
Setfile -a B tn3270test
addshr tn3270test